# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=py3-jupyter_client
pkgver=7.3.4
pkgrel=0
pkgdesc="Jupyter protocol client APIs"
url="https://github.com/jupyter/jupyter_client"
arch="noarch"
license="BSD-3-Clause"
depends="
	py3-traitlets
	py3-pyzmq
	py3-jupyter_core
	py3-entrypoints
	py3-tornado
	py3-nest_asyncio
	py3-dateutil
	"
makedepends="py3-build py3-installer py3-hatchling"
checkdepends="py3-pytest ipython py3-ipykernel"
# circular dependency with py3-ipykernel
options="!check"
source="$pkgname-$pkgver.tar.gz::https://github.com/jupyter/jupyter_client/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/jupyter_client-$pkgver/"

build() {
	python3 -m build --wheel --no-isolation --skip-dependency-check
}

check() {
	pytest
}

package() {
	python3 -m installer --destdir="$pkgdir" dist/*.whl
}

sha512sums="
945fc436a6691cd40adfd691679894b1cda113110ba59454c5e77e488f203fbd26cc227cfe2c4cdb8019af60b2ce38bd355a20c5c6a30806d49e279ba335f8f4  py3-jupyter_client-7.3.4.tar.gz
"
